import request from '@/utils/request'

// 查询employees列表
export function listEmployees(query) {
  return request({
    url: '/employees/list',
    method: 'get',
    params: query
  })
}

// 分页查询employees列表
export function listEmployeesByPage(query) {
  return request({
    url: '/employees/page',
    method: 'get',
    params: query
  })
}

// 查询employees
export function getEmployees(id) {
  return request({
    url: '/employees/' + id,
    method: 'get'
  })
}

// 新增employees
export function addEmployees(data) {
  return request({
    url: '/employees',
    method: 'post',
    data: data
  })
}

// 修改employees
export function updateEmployees(data) {
  return request({
    url: '/employees',
    method: 'put',
    data: data
  })
}

// 删除employees
export function deleteEmployees(id) {
  return request({
    url: '/employees/' + id,
    method: 'delete'
  })
}
